package grape.attend.rest.user.form;
import grape.common.rest.form.BaseForm;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * <p>
 * 用户请假明细表
 * </p>
 *
 * @author yangwei
 * @since 2020-05-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="用户请假明细添加表单对象")
public class UserLeaveCreateForm extends BaseForm {

    private static final long serialVersionUID = 1L;


    @NotNull(message="开始时间不能为空")
    @ApiModelProperty(value = "开始时间",required = true)
    private Long startAt;

    @NotNull(message="结束时间不能为空")
    @ApiModelProperty(value = "结束时间",required = true)
    private Long endAt;

    @NotEmpty(message="假期id不能为空")
    @ApiModelProperty(value = "假期id",required = true)
    private String vacationId;

    @NotEmpty(message="考勤组id不能为空")
    @ApiModelProperty(value = "考勤组id",required = true)
    private String groupId;

    @NotEmpty(message="班次id不能为空")
    @ApiModelProperty(value = "班次id",required = true)
    private String classeId;

    @ApiModelProperty(value = "备注")
    private String remark;



}
